#include "laguagemanager.h"
#include "ui_laguagemanager.h"

LaguageManager::LaguageManager(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::LaguageManager)
{
    ui->setupUi(this);
    for(int i=0; i< languages->size();i++)
    {
        ui->laguagesList->addItem(languages->at(i)->name());
    }
}

LaguageManager::~LaguageManager()
{
    delete ui;
}

void LaguageManager::changeEvent(QEvent *e)
{
    QDialog::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}
